package com.post.remote;

import android.os.Bundle;
import android.os.Message;
import android.os.Messenger;
import android.support.annotation.NonNull;

/**
 * Created by GeLiang on 2016/9/12.
 */
public class RemoteBase {
    public static  String mServicePackageName = "com.vszone.race";
    @NonNull
    protected Message creatMessage(Messenger pReply, int pAction, byte[] pBytes) {
        Message msg = Message.obtain(null, 1);
        msg.replyTo = pReply;
        msg.arg1=pAction;

        final Bundle data = new Bundle();
        data.putByteArray("bytes", pBytes);
//        data.putInt("action",action);
        msg.setData(data);
        return msg;
    }
}
